function downLoadHtml(isView) {
    if (!isView) return;
    let selectHtml = '<label class="layui-form-label">导出类型：</label>\n' +
        '            <div class="layui-col-xs1">\n' +
        '                <select name="fileType" id="fileType" lay-verify="required" lay-filter="fileType">\n' +
        '                    <option value=""></option>\n' +
        '                </select>\n' +
        '            </div>';
    $("#hidden_div").html(selectHtml);

    // 已存在
    if ($("#downLoad").length > 0) return;

    let bottonHtml = '<button type="button" id="downLoad" class="layui-btn layui-btn-primary layui-btn-radius ">下载</button>';
    $("#viewOnline").after(bottonHtml);
}

function loadDLH() {
    $.ajax({
        method: "get",
        url: "/isOpenDownLoad",
        contentType: "application/json",
        async: false,//同步
        dataType: "json",
        success:function(result){
            console.log("请求返回")
            if (result.code == 200 && result.data) {
                downLoadHtml(result.data);
            }
        }
    });
}